package com.yadang;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * SpringBoot启动类
 *
 * @author xpy
 * @date 2021/06/16
 */
@EnableWebMvc
@SpringBootApplication(scanBasePackages = {"com.yadang"})
@MapperScan(basePackages = {"com.yadang.admin.mapper"})
@EnableTransactionManagement
@EnableSwagger2
public class WebApplicationContext {

    public static void main(String[] args) {
        SpringApplication.run(WebApplicationContext.class, args);
        System.out.println("SpringBoot项目已经启动");
    }

}
